package com.own.business.wechat.base.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BasePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * WechatUser
 *
 * @author chenxueli
 * @date 2023-06-29 22:28:56
 */
@Schema(title = "微信用户" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_wechat_user")
public class WechatUser extends BasePo implements Serializable {

    @Schema(title = "所属的appId")
    private String appId;

    @Schema(title = "用户openId")
    private String openId;

    @Schema(title = "用户unionId")
    private String unionId;

    @Schema(title = "用户昵称")
    private String nickname;

    @Schema(title = "性别 0=未知 1=男 2女")
    private Integer sex;

    @Schema(title = "用户个人资料填写的省份")
    private String province;

    @Schema(title = "普通个人资料填写的城市")
    private String city;

    @Schema(title = "国家")
    private String country;

    @Schema(title = "用户头像")
    private String avatar;

}
